package com.hjy.product.feign;

import com.hjy.common.to.SpuReductionTo;
import com.hjy.common.utils.R;
import com.hjy.product.feign.impl.couponFeignClientImpl;
import com.hjy.product.vo.SpuBoundsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "gulimall-coupon",fallback = couponFeignClientImpl.class)
public interface couponFeignClient {

    @RequestMapping("/coupon/spubounds/save")
    public R save(@RequestBody SpuBoundsVo spuBounds);

    @RequestMapping("/coupon/skufullreduction/saveReduction")
    R saveReduction(@RequestBody SpuReductionTo spuReductionTo);
}
